package edu.jd;

import edu.jd.mainframe.MainFrame;

import javax.swing.*;

public class Demo {
    public static void creatGUI() {

        MainFrame frame = new MainFrame("学生作业批改系统");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(800, 600);
        frame.setVisible(true);
    }

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }
        javax.swing.SwingUtilities.invokeLater(new Runnable(){
            public void run(){
                creatGUI();
            }
        });
    }
}
